﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package Transactions {
    import Classes.*;
    import Display.MarketUI.*;

    public class TAcquirePermit extends TFarmTransaction {

        protected var m_item:Item;
        protected var m_donation:Number = 0;

        public function TAcquirePermit(_arg1:String){
            this.m_item = Global.gameSettings.getItemByName(_arg1);
        }
        override public function perform():void{
            signedCall("UserService.acquirePermit", this.m_item.name);
        }
        override protected function onComplete(_arg1:Object):void{
            if (((!((_arg1 == null))) && ((_arg1.itemName == this.m_item.name)))){
                MarketCell.refreshUnlockedCells(this.m_item.name);
            };
        }

    }
}//package Transactions 
